package templates;

import java.awt.*;
import processing.core.*;
import processing.opengl.*;

/**
 * FullscreenOpenGLTemplate is a template for running processing in fullscreen mode
 * 
 *REMEMBER: Setup VM arguments when running as application 
 *(fx: -Djava.library.path="C:\Projects\processingSketches\openGL")
 */
@SuppressWarnings({ "serial", "unused" })
public class FullscreenOpenGLTemplate extends PApplet{
	//Get screen resolution
	GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
	public final int WIDTH = gd.getDisplayMode().getWidth();
	public final int HEIGHT = gd.getDisplayMode().getHeight();
	
	//Set default background
	public final int BACKGROUNDCOLOR = color(255,255,255);

	public void setup() {
		size(WIDTH, HEIGHT, OPENGL);
		background(BACKGROUNDCOLOR);
	}
	
	public void draw() {
	}
	
	/***Event handlers***/
	public void mousePressed() {
		  if (mouseButton == LEFT) {
		  } else if (mouseButton == RIGHT) {
		  } else {
		  }
	}
	
	public void mouseReleased()	{		
	}
	
	public void mouseMoved() {
	}
	
	public void mouseDragged() {
	}	
	
	public void keyPressed(){	
	}
	
	public static void main(String[] args) {
		PApplet.main(new String[] {"--present", templates.FullscreenOpenGLTemplate.class.getName()});
	}
}